#ifndef WIDGET_H
#define WIDGET_H
#define TIMEOUT 1*1000


#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    virtual void timerEvent(QTimerEvent *event);
    ~Widget();

private slots:
    void on_startbutton_clicked();

    void on_stopbutton_clicked();

private:
    Ui::Widget *ui;
    int myTimerId;
    int picId;
};
#endif // WIDGET_H
